package cn.silver.module.web.enums;

import cn.silver.framework.satoken.enums.GrantTypeEnums;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum LoginType {

    PASSWORD(GrantTypeEnums.AUTH_PASSWORD.getCode(), "user.password.retry.limit.exceed", "user.password.retry.limit.count"),

    SMS(GrantTypeEnums.AUTH_SMS.getCode(), "sms.code.retry.limit.exceed", "sms.code.retry.limit.count"),

    EMAIL(GrantTypeEnums.AUTH_MAIL.getCode(), "email.code.retry.limit.exceed", "email.code.retry.limit.count"),

    XCX(GrantTypeEnums.AUTH_XCX.getCode(), "", "");

    final String grandType;
    final String retryLimitExceed;

    final String retryLimitCount;

}
